1 //+-----------------------------------------------------------------------
3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // Contains miscellaneous global definitions
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
14 //------------------------------------------------------------------------
18 #define ERROR_NO_COMMAND_SPECIFIED 1
19 #define ERROR_COULD_NOT_LAUNCH_RESTRICTED 2
20 #define ERROR_NAVIGATE_FAILED 3
21 #define ERROR_INVOKING_BROWSER 4
22 #define ERROR_NO_EVENT 5
23 #define ERROR_ACTIVATION_EXCEPTION 6
24 #define ERROR_HOST_CRASHED 7
25 #define ERROR_NO_HOST 8
26 #define ERROR_NO_HOST_INIT_FAILED 9
27 #define ERROR_ACTIVATION_ABORTED 30 // used in managed code
29 #define FACILITY_NPAPI 0x102 // used by Mozilla plugin
30 #define FACILITY_WPF_HOST 0x103
32 inline HRESULT
WPFHostError2HResult(int error
)
34 return error
== NOERROR
? S_OK
: (HRESULT
)(error
| (FACILITY_WPF_HOST
<< 16) | 0x80000000);